import { $axios } from "@/api/requist";

export const login = (params) => {
  return $axios
    .post("login", params)
    .then((res) => {
      // console.log(res);
      // 现有对象转换成 promise 对象
      return Promise.resolve(res);
    })
    .catch((err) => {
      console.log(err);
    });
};
